﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.Common
{
    /// <summary>
    /// 历史日期
    /// </summary>
   public class HistoryDate
   {
       public static DateTime CurrentDate;
       /// <summary>
       /// 获取季节
       /// </summary>
       /// <returns></returns>
        public static string GetSeason()
        {
            if (CurrentDate.Month >= 1 && CurrentDate.Month < 3)
                return "春";
            if (CurrentDate.Month >= 3 && CurrentDate.Month < 6)
                return "夏";
            if (CurrentDate.Month >= 6 && CurrentDate.Month < 9)
                return "秋";
            if (CurrentDate.Month >= 9 && CurrentDate.Month < 1)
                return "冬";
            else
                return null;
        }
       /// <summary>
       /// 获取格式化的日期
       /// </summary>
       /// <returns></returns>
        public static string GetFormatDate()
        {
            return CurrentDate.Year + "年" + CurrentDate.Month + "月" + CurrentDate.Day + "日";
        }
       public static void InIt()
       {
           CurrentDate=new DateTime(194,1,1);
       }
   }
}
